From 3533972f6d423e71533ffbce5cb9d84bd1a9a674 Mon Sep 17 00:00:00 2001 From: Julien Grall Date: Thu, 19 Dec 2013 16:45:03 +0000 Subject: [PATCH] tools/libx: xl uptime doesn't require argument The current behavior is: 42sh> xl uptime 'xl uptime' requires at least 1 argument. Usage: xl [-v] uptime [-s] [Domain] The normal behavior should list uptime for each domain when there is no parameters. Signed-off-by: Julien Grall Acked-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 078f7a73e0..dce2699f70 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -6285,7 +6285,7 @@ int main_uptime(int argc, char **argv) int nb_doms = 0; int opt; - SWITCH_FOREACH_OPT(opt, "s", NULL, "uptime", 1) { + SWITCH_FOREACH_OPT(opt, "s", NULL, "uptime", 0) { case 's': short_mode = 1; break; -- 2.30.2